import React from 'react';
import {Text,View,Button} from 'react-native'
import { createStackNavigator } from '@react-navigation/stack';


function HomeScreen() {
    return (
        <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
            <Text>Home Screen</Text>
            <Button
                title="Go to Details"
                onPress={() => {

                }}
            />
        </View>
    );
}


export default class SettingScreen extends React.Component {

    render() {
        const Stack = createStackNavigator();
        return (
            <Stack.Navigator>
                <Stack.Screen name="设置" component={HomeScreen} />
            </Stack.Navigator>
        );
    }
}
